<p><strong>Consulta &gt; Publicidad </strong></p>
<form id="form2" name="form2" method="post" action="PublicidadListarServlet">
  <p>Buscar :
    <label>
    <input type="submit" name="button" id="button" value="Mostrar" />
    </label>    
  </p>
</form>
<table width="800" height="65" border="1" cellpadding="0" cellspacing="0">
  <tr>
    <th width="30"  scope="col">Item</th>
    <th width="40" scope="col">Codigo</th>
    <th width="150" scope="col">Titulo</th>
    <th width="200" scope="col">Contenido</th>
    <th width="80" scope="col">Fecha Inicio</th>
    <th width="80" scope="col">Fecha Fin</th>
    <th width="60" scope="col">Tarifa</th>
    <th width="60" scope="col">Numero de Clicks</th>
    <th width="100" scope="col">Ubicacion</th>
  </tr>
  <%@page import="java.util.*, veterinaria.modelo.Publicidad" %>
  <%Collection<Publicidad> arreglo = (ArrayList<Publicidad>)request.getAttribute("publicidads");
    if (arreglo != null) { 
       int i = 1;
       for (Publicidad x : arreglo) {%>  
            <tr>
                <td><%=i++ %></td>
                <td><% out.print(x.getPubCodigo()); %></td>
                <td><% out.print(x.getPubTitulo()); %></td>
                <td><% out.print(x.getPubContenido()); %></td>
                <td><% out.print(x.getPubFecInicio()); %></td>
                <td><% out.print(x.getPubFecFin()); %></td>
                <td><% out.print(x.getPubTarifa()); %></td>
                <td><% out.print(x.getPubNroClicks()); %></td>
                <td><% out.print(x.getPubDUbicacion()); %></td>
            </tr>
       <% }  
    } %> 
</table>